package com.zstu.mall.dao;

import com.zstu.mall.common.BaseRepository;
import com.zstu.mall.entity.Product;
import com.zstu.mall.entity.ProductClass;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author     : wuyc
 * @description: ProductClassDao
 * @date       : Created in 2019/11/24
 */
public interface ProductClassDao extends BaseRepository<ProductClass, String> {

    List<ProductClass> findByType(String type);

    /**
     * 查找所有类
     * @param status
     * @param pageable
     * @return
     */
    List<ProductClass> findByStatus(String status, Pageable pageable);

}
